Skip to content

Conversation

joelte
Copy link
Member

@joelte joelte commented Nov 16, 2026 •

  • Installed and configured Vitest (with jsdom, Testing Library, and jest-dom) for the frontend
  • Added a shared test setup file (frontend/src/test/setup.ts)
  • Added unit/component tests for Header, Layout, GameListItem, StarRating, and Toolbar
  • Added a test script to frontend/package.json

Test plan

  • cd frontend && npm install
  • npm run test and confirm all new test suites pass
  • Spot-check that no existing frontend functionality regressed

Closes #84

Halvor Thallaug Fagerli and others added 3 commits November 15, 2026 15:27
Installed vitest to frontend, and added "test" script
Created the setup for and implementation of tests for GameList, Header, Layout, StarRating and Toolbar. Added dev dependencies: @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, jsdom
@joelte joelte requested a review from a team as a code owner November 16, 2026 09:58
Copy link
Member

@ayseza ayseza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests passed and frontend remains intact. Well done!
image

@ayseza ayseza merged commit 167186f into dev Nov 16, 2026
@ayseza ayseza deleted the frontend_vitest branch November 16, 2026 10:54
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants